<include file="public:header"/>
<div class="banner1"></div>
<!-- 会员中心 -->
<div class="usercenter">
    <div class="left">
        <div class="left_t">会员中心</div>
        <div class="left_m">
            <include file="Member:left"/>
        </div>
    </div>
    <div class="right">
        <div class="main_t">账户设置</div>
        <div class="right_t">
            <form action="{:U('member/center')}" id="member-form" method="post">
                <table border="0" cellspacing="0" cellpadding="0" class="userc">
                    <tr>
                        <td width="200">姓名：{$info.username}</td>
                        <td>身份证号：{$info.idcard}</td>
                    </tr>
                    <tr>
                        <td>性别：{$info.sex|formatSex}</td>
                        <td>家庭住址：<input type="text" name="address" id="address" value="淄博市临淄区闫家村"/></td>
                    </tr>
                    <tr>
                        <td>年龄：<input type="text" name="age" id="age" value="45" style="width:35px;"/> 岁</td>
                        <td>手机号码：{$info.mobile}</td>
                    </tr>
                    <tr>
                        <td>民族：<input type="text" name="nation" id="nation" value="{$info.nation}" style="width:35px;"/></td>
                        <td>邮箱号码：<input type="text" name="email" id="email"  value="{$info.email}"/></td>
                    </tr>
                    <tr>
                        <td>健康状况：<input type="text" name="healthy" id="healthy" value="{$info.healthy}" style="width:50px;"/></td>
                        <td>特长：<input type="text" name="strength" id="strength" value="{$info.strength}"/></td>
                    </tr>
                    <tr>
                        <td colspan="2">农业银行账号：<input type="text" name="account" id="account" value="{$info.account}" style="width:315px;"/></td>
                    </tr>
                    <tr>
                        <td colspan="2">开户行地址：<input type="text" name="account_addr" id="account_addr" value="{$info.account_addr}" style="width:330px;"/></td>
                    </tr>
                    <tr>
                        <td colspan="2">收货地址：<input type="text" name="receipt_addr" id="receipt_addr" value="{$info.receipt_addr}" style="width:345px;"/></td>
                    </tr>
                    <tr>
                        <td colspan="2">0号家长：<input type="text" name="first_f" id="first_f" value="{$info.first_f}" style="width:350px;"/></td>
                    </tr>
                </table>
                <div class="anniu2"><input type="button" name="button" id="button" value="保 存" /></div>
            </form>
        </div>
    </div>
    <div class="clear"></div>
</div>
<!-- 底部 -->
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<script>
$(function(){
   $('#button').click(function(){
       $.ajax({
           type:'post',
           url:$('#member-form').attr('action'),
           data: $('#member-form').serialize(),
           dataType:'json',
           success: function(res){
               if(!res.status)
               {
                   layer.msg(res.msg, {icon: 2,top:50})
                   return false;
               }
               layer.msg(res.msg, {icon: 1,top:10})
           }
       })
   })
})

</script>
<include file="public:footer"/>